package com.lanou3g.ptp.warning.service;

import com.github.pagehelper.PageInfo;
import com.lanou3g.ptp.entity.TaskWarningPlan;
import com.lanou3g.ptp.entity.Teacher;
import com.lanou3g.ptp.entity.Warning;
import com.lanou3g.ptp.entity.WarningPlan;
import com.lanou3g.ptp.vo.Option;

import java.util.List;

public interface WarningService {
    PageInfo<WarningPlan> findPlansByType(Integer type, Integer page, Integer size);

    boolean addPlan(WarningPlan warningPlan);

    boolean deletePlanById(Long warningPlanId);

    boolean updatePlanById(WarningPlan warningPlan);

    WarningPlan findPlanById(Long warningPlanId);

    List<Option> options(Integer type);

    int insertTaskWarningPlans(List<TaskWarningPlan> taskWarningPlans);

    int deleteTaskWarningPlansByTaskId(Long taskId);

    void warn(Long taskId, List<WarningPlan> plans, Long studentId);

    List<WarningPlan> findPlansByTaskId(Long taskId);

    PageInfo<Warning> findWarningsByTeacher(Teacher teacher, Integer page, Integer size);
}
